#include "CHighScoreState.h"
#include "CMainMenuState.h"
#include "CGame.h"

CHighScoreState::CHighScoreState(void)
{

}

CHighScoreState::CHighScoreState(const CHighScoreState&)
{

}

CHighScoreState& CHighScoreState::operator=(const CHighScoreState&)
{
	return *this;
}

CHighScoreState::~CHighScoreState(void)
{

}

CHighScoreState* CHighScoreState::GetInstance(void)
{
	static CHighScoreState inst;
	return &inst;
}

void CHighScoreState::Enter(void)
{

}

bool CHighScoreState::Input(void)
{
	if(CSGD_DirectInput::GetInstance()->KeyPressed(DIK_RETURN)|| CSGD_DirectInput::GetInstance()->JoystickButtonPressed(0))
	{
		CGame::GetInstance()->ChangeState(CMainMenuState::GetInstance());
	}

	return true;
}

void CHighScoreState::Update(float fElapsedTime)
{

}

void CHighScoreState::Render(void)
{
	// Render background image

	// Temporary functionality display
	CSGD_Direct3D::GetInstance()->DrawTextA("This is the high score state.", 200, 200, 255, 0, 0);
}

void CHighScoreState::Exit(void)
{

}